package com.redhipps.hips.client.widget;

import com.redhipps.hips.client.model.Model;

/**
 * Callback for implementations of {@link ModelListEditDelegate} to communicate
 * asynchronous results to the {@link ModelList}. An instance of this interface
 * is provided to the delegate when an operation begins and the delegate calls
 * this instance back based on the result of the operation. This callback typically
 * triggers the {@link ModelList} to refresh based on the operation performed.
 * 
 * @author yuhong
 */
@Deprecated
public interface ModelListEditCallback<T extends Model> {  // TODO Generalize/rename

  void onSuccess(T m);

  void onCancel();

  void onFailure(Throwable caught);

}
